#!/usr/bin/python3
# -*- coding: utf-8 -*-

import os
from resource_management import *
from resource_management.libraries.script.script import Script

config = Script.get_config()

# deploy

#pgsql_repo_rpm=config['configurations']['pgsql-deploy-config']['pgsql.repo.rpm']
pgsql_version=config['configurations']['pgsql-deploy-config']['pgsql.version']
pgsql_data_dir=config['configurations']['pgsql-deploy-config']['pgsql.data.dir']
pgsql_db_username=config['configurations']['pgsql-deploy-config']['pgsql.db.username']
pgsql_db_password=config['configurations']['pgsql-deploy-config']['pgsql.db.password']
pgsql_db_repuser_username=config['configurations']['pgsql-deploy-config']['pgsql.db.repuser.username']
pgsql_db_repuser_password=config['configurations']['pgsql-deploy-config']['pgsql.db.repuser.password']




pgsql_server_port=config['configurations']['pgsql-config']['pgsql.server.port']
pgsql_listen_address=config['configurations']['pgsql-config']['pgsql.listen.addresses']
pgsql_max_connection=config['configurations']['pgsql-config']['pgsql.max.connection']
pgsql_wal_level=config['configurations']['pgsql-config']['pgsql.wal.level']
pgsql_max_wal_senders=config['configurations']['pgsql-config']['pgsql.max.wal.senders']
pgsql_conf_content=config['configurations']['pgsql-config']['postgresql.conf.content']


pgsql_hba_content=config['configurations']['pg_hba-config']['pg_hba.conf.content']


pgadmin_repo_rpm=config['configurations']['pgadmin-config']['pgadmin.repo.rpm']


service_packagedir = os.path.realpath(__file__).split('/scripts')[0]

